package com.example.message.core;

public class UnsupportedMethodException extends RuntimeException {

	private static final long serialVersionUID = 1L;
	private static final String MESSAGE_TEMPLATE = "%s.%s is not a supported method.";
	
	private Class<?> clazz;
	private String method;

	public UnsupportedMethodException() {
		super();
	}

	public Class<?> getClazz() {
		return clazz;
	}

	public String getMethod() {
		return method;
	}

	@Override
	public String getMessage() {
		return String.format(MESSAGE_TEMPLATE, getClazz(), getMethod());
	}
}
